package TestService;

import Po.User;
import Service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = "classpath:applicationContext.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class TestUserService {
    @Autowired
    private UserService userService;

    @Test
    public void testIsNamePassword(){
        User user = new User();
        user.setName("admin");
        user.setPassword("12345678");
        System.out.println(userService.isNamePassword(user));
    }

}
